home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / president.gsh < prev    next >
Text File  |  2000-09-09  |  2KB  |  63 lines

  1. // defines The President
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. #ifndef INCLUDED_PRESIDENT_GSH
  7. #define INCLUDED_PRESIDENT_GSH
  8.  
  9. ////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "defaults.gsh"
  12.  
  13. hierarchy Hcy_President
  14. {
  15.     file "units\maskelyn Mkii.RIF"
  16.     name "maskelyn mkii"
  17.     hotspot "dum flash"
  18. }
  19.  
  20. hierarchy Hcy_PresidentShadow
  21. {
  22.     file "units\maskelyn_shadow.RIF"
  23.     name "maskelyn_shadow"
  24. }
  25.  
  26. hierarchy Hcy_PresidentCustomize
  27. {
  28.     file "units\wepmaskelyn.RIF"
  29.     name "wepmaskelyn"
  30. }
  31.  
  32. character Chr_President : Chr_DefaultGoodie
  33. {
  34.     turning speed   1    // this is in revolutions per second
  35.     walking speed   1    // this is in animation cycles per second
  36.     strength        20    // initial strength points
  37.     aim             0    // how many degrees off target he can be at most
  38.     sight angle        75    // in degrees
  39.     sight range     12    // in metres
  40.     hearing range    17    // in metres
  41.     aggression        0.7    // from 0 to 1
  42.     radius            0.5    // used by the movement model
  43.     shadow hierarchy    Hcy_PresidentShadow
  44.     customization hierarchy Hcy_PresidentCustomize
  45.     status window u    0
  46.     status window v    0
  47. }
  48.  
  49. role Rol_President : Rol_DefaultRobot
  50. {
  51.     shape            Hcy_President
  52.  
  53.     character        Chr_President
  54.  
  55.     identifier        "PRESIDENT"
  56.  
  57.     ai                president
  58. }
  59.                     
  60. ////////////////////////////////////////////////////////////////////////////////////
  61.  
  62. // end wrapper - for preventing multiple or recursive inclusions
  63. #endif // !INCLUDED_PRESIDENT_GSH